<div class="type-list" id="sele_type">
	<article class="company-type">
	    <h2>企业类型选择</h2>
	    <p>请选择您要成立的公司类型，这跟您经营的行业有关</p>
	    <ul class="clearfix">
	        <foreach name="types" key="n" item="val">
	        <li>
	            <a href="javascript:void(0)" onclick="save_type({$n},'{$val.name}')" style="margin-top:0.75rem;">
<!-- 	                <h3>TRADING</h3> -->
	                <span>{$val.name}</span>
	            </a>
	        </li>
			</foreach>
	    </ul>
	</article>
<script>
function save_type(key,name){
	$.post(
		"{:U('getCtypes')}",
		{key:key,name:name},
		function(data){
			if(data.status == '1'){
				var str = '';
				var infos = data.info;
				for(var i=0;i<infos.length;i++){
					str += '<li>';
		            str += '<a href="javascript:;">';
		            str += '<div>'+infos[i].name+'</div>';
		            str += '<input type="checkbox" name="typescope" value="'+infos[i].name+'"/>';
		            str += '<input type="hidden" name="ctype_key" value="'+infos[i].key+'"/>';
		            str += '<img class="none" src="__PUBLIC__/home/images/selected.png" />';
		            str += '</a>';
		            str += '</li>';
				}
				$('#ctypes_con').html(str)
			}
			nextPage()
		}
	)
	console.log(datas)
}
</script>
</div>